package com.simple.datax.dao.impl;

import java.util.List;

import org.hibernate.criterion.Order;
import org.springframework.stereotype.Repository;

import com.simple.base.dao.BaseDAO;
import com.simple.datax.dao.IDataxDictionaryCatagoryDAO;
import com.simple.datax.vo.DataxDictionaryCatagoryVO;

@Repository("dataxDictionaryCatagoryDAO")
public class DataxDictionaryCatagoryDAOImpl extends BaseDAO implements IDataxDictionaryCatagoryDAO {

	@Override
	public DataxDictionaryCatagoryVO findById(final Integer id) {
		return  super.get(DataxDictionaryCatagoryVO.class,id);
	}

	@Override
	public void saveOrUpdate(final DataxDictionaryCatagoryVO dataxDictionaryCatagoryVO) {
		super.saveOrUpdate(dataxDictionaryCatagoryVO);
	}

	@Override
	public List<DataxDictionaryCatagoryVO> findAll() {
		return super.query(DataxDictionaryCatagoryVO.class,Order.asc("fiId"));
	}
	

	@Override
	public void delete(final DataxDictionaryCatagoryVO dataxDictionaryCatagoryVO) {
		super.delete(dataxDictionaryCatagoryVO);
	}
	
	
	

}
